#ifndef led01_h
#define led01_h
#include "stm32f10x.h"
#include "system.h"

#define LED_PORT GPIOA

// 定义位带
#define LED0 PAout(0)
#define LED1 PAout(1)
#define LED2 PAout(2)
#define LED3 PAout(3)
#define LED4 PAout(4)
#define LED5 PAout(5)
#define LED6 PAout(6)
#define LED7 PAout(7)

void ledInit(); // 时钟使能，gpio初始化
void ledWriteData(uint16_t GPIO_Pin_from, u8 num, u8 data);

#endif